package cn.shop.merchant.model.media;

import cn.shop.merchant.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotBlank;

/**
 * @author : 李一涵
 * @date : Created in 2021-11-3 17:39
 * @description : 公告类
 */
@TableName("merchant_notice")
public class Notice extends BaseEntity {

    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "内容不能为空")
    private String content;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return super.toString() +  "Notice{" +
                "title='" + title + '\'' +
                ", content='" + content + '\'' +
                '}';
    }
}
